Method and apparatus for transmitting data in a data stream

ABSTRACT

The invention provides a method and apparatus that addresses and resolves the issues currently affecting the ability to offer Enhanced TV, in particular, those issues concerning timing and synchronization, interaction with other modules in the STB, and distribution.

BACKGROUND OF THE INVENTION

[0001] 1. Technical Field

[0002] The invention relates to information distribution. More particularly, the invention relates to a method and apparatus for transmitting data in a data stream.

[0003] 2. Description of the Prior Art

[0004] The term “Enhanced TV” refers to the delivery of additional data to a client beyond the current standards of audio, video, teletext, and subtitle data. These data may be used to enhance the viewing experience in many ways—they may be used to prompt the user to take certain actions, they may be used to place informational graphics on the screen, or they may be used to create truly interactive programming, where the viewer has a great deal of control over what appears on the screen. As a medium, Enhanced TV is still in its infancy, and many opportunities for applying the technology have yet to be explored.

[0005] The technology of Enhanced TV is one of distributing a shared user experience to many clients simultaneously. The user experience can be more dynamic, flexible, and interactive than pure audio or video experiences. This technology can be used without audio or video, or with audio or video alone.

[0006] There are several fundamental pieces of an Enhanced TV system. On the broadcast or head end side, there is a source, which is often a server or suite of servers that schedule and format the enhancement data. The data are then integrated into the audio and video data streams, and sent down to the end users' homes through a broadcast transmission system. The essential action of the source is the creation of a set of data for later distribution. Although the source is referred to in this document as a server, the source may not be a server in the strict sense. For instance, the source could be a software component that writes files to a disk for later broadcast, or annotates an MPEG file, or creates one or more proprietary files to be read by a transmission agent, such as a spooler.

[0007] On the end user side, there is a module in the television or set top box client in the viewer's home that interprets the enhanced TV data. This module may carry out commands in the data itself, or it may launch a dedicated application, referred to as an enhancement, which may have its own methods of listening to and interpreting the enhanced TV data.

[0008] In developing Enhanced TV systems and Enhanced TV content/enhancements, several issues arise:

[0009] 1) Synchronization and Timing. Many enhancements rely on very close synchronization between the data stream as delivered to the enhancement and the audio/video shown to the user. For instance, a quiz show enhancement should not present questions until the on-screen announcer had announced them. Even if the audio/video data and the enhanced TV data are delivered to the set top box at the same time, they may take very different data paths internally. Different delays in these data paths create synchronization problems that are visible to the viewer. Delays may also come from other sources as well as the client, e.g. servers, networks, and transmission media all may introduce their own delays.

[0010] 2) Interactions with other modules in the client. In many of the more modern and complex client systems, there are many modules besides the Enhanced TV module running concurrently. These modules may include an Electronic Program Guide (EPG), Video On Demand services, and billing systems, among others. Defining how the Enhanced TV module and its subservient enhancements interact with these other modules is non-trivial because some, but not all, of the capabilities of these other modules must be exposed to the Enhanced TV system. The picture is further complicated by the fact that different network operators have different needs, and wish to expose different pieces of the full system to the Enhanced TV subsystem. Network operators may additionally have different business relationships with different enhanced content providers, and may wish to expose or hide parts of the system based on those business relationships.

[0011] 3) Distribution. Because Enhanced TV data is created to enhance television broadcasts, Enhanced TV data originate from many different sources, e.g. broadcasters and television content producers. Unlike conventional television programming, multiple enhancements may be active and consuming resources at the same time. It is important to be able to make sure enhancements from distributed and mutually unaware sources be able to run in a single integrated environment.

[0012] 4) Loading. Because Enhanced TV data are often not resident on the client, and must be pulled off of a data stream, there is often a delay before the enhancement can be presented to the user. Furthermore, limitations of the client, server, and distribution mechanism may make it impossible to run the enhancement correctly. Such limitations may include memory or resource limitations on the client, and data delivery errors within the server and distribution mechanism. For the user experience, it is important that some amount of functionality of the enhancement be guaranteed before any notification of the enhancement is presented to the user.

[0013] It would be advantageous to provide a method and apparatus that addresses and resolves the issues currently affecting the ability to offer Enhanced TV, in particular, those issues concerning timing and synchronization, interaction with other modules in the STB, distribution, and loading.

SUMMARY OF THE INVENTION

[0014] The invention provides a method and apparatus that addresses and resolves the issues currently affecting the ability to offer Enhanced TV, in particular, those issues concerning timing and synchronization, interaction with other modules in the STB, and distribution.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015]FIG. 1 is a block schematic diagram of a system architecture according to the invention;

[0016]FIG. 2 is a block schematic diagram of a system architecture according to the invention when there is no broadcast data server;

[0017]FIG. 3 is a block schematic diagram of a system architecture according to the invention when the invention is applied to a Video On Demand (VOD) system;

[0018]FIG. 4 is a block schematic diagram of a system architecture according to the invention when the invention is applied to a Digital Video Recorder (DVR) system;

[0019]FIG. 5 is a block diagram illustrating multiplexing of time pulses and data associated with different substreams in one data stream;

[0020]FIG. 6 is a block diagram that illustrates the problem of accessing a privileged function from an unprivileged document;

[0021]FIG. 7 is a block diagram that illustrates a technique for accessing a privileged function from an unprivileged document according to the invention; and

[0022]FIG. 8 is a block diagram that illustrates a technique for signaling between privileged and unprivileged contexts without granting security access according to the invention.

DETAILED DESCRIPTION OF THE INVENTION

[0023] The invention provides a method and apparatus that addresses and resolves the issues currently affecting the ability to offer Enhanced TV, in particular, those issues concerning timing and synchronization, interaction with other modules in the client, and distribution. The invention is described in connection with an Enhanced TV system, but those skilled in the art will appreciate that the invention may be applied to other similar systems, such as recent cell phones and personal data assistants (PDAs), as well as general personal computing (PC) environments.

[0024]FIG. 1 is a block schematic diagram of a system architecture according to the invention.

[0025] At a high level, the presently preferred embodiment of the invention comprises a computer (server) 12 that schedules and transmits data-, a system for distributing (transmission mechanism 16) that data to other computers (clients) 11, and one or more computers (clients) which receive the transmitted data and act on them in a defined fashion. These parts work together to for a single distributed computing system.

[0026] Also shown on FIG. 1 is an enhanced TV management system, i.e. schedulers 10, a content data server 15, and an auxiliary data/video/audio server 19. These features of an enhanced TV system are well known to those skilled in the art.

[0027] The computer that schedules and transmits is known as a broadcast data server 12. The computer that receives and interprets the data streams is known as a broadcast client 11. The infrastructure for distributing the data is known as the transmission mechanism 16. The broadcast data server 12 may be a single computer or it may consist of many computers collaborating to create one or many broadcast data streams.

[0028] Note that the broadcast data server 12 may not be a server at all. It is any device, component, software or the like that provides the transmission mechanism 16 with one or more data streams. The function of the broadcast data server 12 is the creation of data for distribution. The data may be sent through the transmission mechanism 16 immediately in a true server mode, or it may be stored in some way for broadcast or other transmission later. Such storage mechanisms may include the creation of proprietary files that can be read by a spooler, or annotations to an MPEG file, among others. One embodiment of the invention is shown in FIG. 2 (discussed below), where the data are stored in a unit that is marked Storage Media. For simplicity, this component of the invention is referred to as a “server” herein.

[0029] The broadcast data server 12 optionally communicates with a content data server 15, which is responsible for fetching or creating the content associated with the enhancement. A scheduler 10 is responsible for specifying to the broadcast data server 12 which data are to be placed on which output data streams at which times. The broadcast data server 12 is responsible for gathering the data, often with the assistance of the content data server 15, scheduling the data so that they appear at the correct times on the output data streams, and formatting the data in a way that is compatible with the transmission mechanism 16. In the case of MPEG transmissions over a DSL connection, the data can be formatted as MPEG transport streams, but it can also be formatted as Internet Protocol IP packets in an IP based phone system, or as data to be inserted in the Vertical Blanking Interval (VBI) in an analog TV system, or in some other way appropriate to the transmission mechanism in which the invention is embodied.

[0030] There may be multiple schedulers 10 feeding a single broadcast data server, as shown in FIG. 2. This allows multiple mutually independent enhancement providers to use the system simultaneously. For instance in a digital satellite TV system, many broadcasters can use separate schedulers but the same broadcast data server to provide enhancements on their individual TV channels. Similarly, a scheduler associated with an advertisement insertion system can drive enhancements associated with advertisements, while a separate scheduler can drive enhancements associated with the standard programming.

[0031] The scheduler 10 may also communicate with one or more optional auxiliary audio, data, or video server 19. The auxiliary server 19 is responsible for sending data that are not directly enhancement-related to the client, either through the same transmission mechanism used by the enhancement, or through some other means. In the case of a digital TV system or VOD service, auxiliary server 19 can be a standard video server. Communication with an auxiliary server, while not required, is useful when synchronizing enhancement data with auxiliary data.

[0032] Note that although auxiliary server 19 is likely to be present in most embodiments of this invention, its existence is not required. Many of the high value applications of the invention involve adding to existing television infrastructure, and distributing an experience that enhances the traditional capabilities of television or radio. However, the system may present its own self contained experience.

[0033] Although the broadcast data server 12, the content data server 15, and the scheduler 10 are shown as independent entities in the figures, there is no requirement that they be so. They could be hosted on the same physical piece of equipment, or even merged into a single integral piece of software, or their functionality could be provided in a variety of other ways and combinations.

[0034] Similarly, it is possible for multiple broadcast data servers to serve a single set of clients. For instance, in a digital cable system, each broadcaster can have its own scheduler and broadcast data servers feeding into its own MPEG data streams, which would be multiplexed together into the final transport stream at the cable operator's head end.

[0035] [delete Per Carolyn Wales]

[0036] [delete Per Carolyn Wales]

[0037] The presently preferred broadcast server 12 sends three distinct streams for each enhancement, i.e. an Announcement stream 100, a Trigger stream 104, and a Content stream 102. These streams are shown on FIG. 1 as each having a path from a scheduler 10, through the server 12, a distribution (transmission) mechanism 16, one or more clients 11 and the Enhanced TV service 13. The Announcement stream 100 serves as a mechanism for notifying the client of which enhancements are available. The Trigger stream 104 contains time-sensitive information for the enhancement itself, and also carries the time synchronization protocol data. The Content stream 102 contains the resources that make up the enhancements themselves, or references that enable the retrieval of the enhancements. Such resources and references may include but are not limited to HTML files, JavaScript, JAR files, GIFs, binary data, URLs and reference identifiers. These streams are transmitted to the client(s). Although it is preferred that most enhancements carry all three streams, it is not strictly necessary.

[0038] Note that a trigger in this context does not refer only to EIA 746A data. A trigger in as used herein can be any discrete chunk of information defined by the enhancement, may be formatted in any arbitrary way, and may consist of strings, numbers, binary data, and others. These data arrive on the client as a unit, and can be marked for presentation to the enhancement at a predefined time.

[0039] As an example, in an interactive TV system running over DSL lines, the server could produce streams that are combined into the MPEG data feed that is sent to the digital set top boxes or digitally enabled TVs. The Announcement stream could contain tables of name value pairs, where the names specify known attributes of the enhancement, such as the URL or other unique reference identifier for the enhancement to run, the start and stop time for the enhancement, and information on how to prompt the viewer to run the enhancement. The Trigger stream could contain information relating to state changes in the enhancement, for instance name value pairs of “Question” and “Answer” relating to questions currently being asked on a quiz show. The Content stream could contain the data associated with the enhancement, including the root content (in this example, possibly “quizshow.html”) and associated resources (for instance, “questions.js”, “correct.gif”, etc).

[0040] In the above example, the streams could be formatted as MPEG private sections, and are associated with particular video services through advertisement in the Program Map Table (PMT), or similar mechanism. Such a mechanism allows the client to find the enhancements associated with standard broadcast data.

[0041] Data for different enhancements may share streams, that is, there is no requirement that the streams for different enhancements be distinct. In the previous example, for instance, all enhancements for a particular MPEG/DVB service can share the same Announcement, Content, and Trigger streams. There is also no requirement that enhancements must share the same streams.

[0042] Data are transmitted through the transmission mechanism to one or more clients, processed, and the enhancement displayed to the users. The transmission mechanism is inherently digital, although the digital signal typically is encoded in analog signals. The transmission mechanism can be of variable delay, and is commonly comprised of one or many computers, devices, and data paths. An example of a low delay medium is a digital television transmission system, which carries digital data along with the digital television system. An example of a high delay system is a system that encodes data on a digital video tape, and retransmission through a digital television transmission system occurs at a later time. Another example is a stock ticker distribution system based on Internet Protocol (IP) networking destined for portable, networked devices such as cell phones. The broadcast media itself can be an RF cable network, as in the preceding example, but can also be phone lines, Ethernet, satellite signals, fiber optics, or any other broadcast transmission medium. It should be understood that the principles of the present invention apply not only to systems using broadcast transmission mediums but also to systems employing pointcast, multicast and other transmission mediums.

[0043] On the client, a software element, the enhancement service 13 in FIG. 1, listens to the Announcement stream, and processes the data that it receives on this stream. Data on the Announcement stream contain commands to start and stop enhancements, and references to the enhancement being launched. Depending on the constraints in the client itself, for instance whether the user wishes to see or otherwise access the enhancements, and constraints imposed by the network operator, for instance whether broadcast owners of the currently tuned TV service have paid to have their enhancements visible, the enhancement service can launch an enhancement.

[0044] An enhancement, in the terms of this invention, is a set of content that can be run (e.g., interpreted, executed or otherwise run) and displayed in the client environment. The “runable” (e.g., interpretable or executable) elements of an enhancement can be in program format, such as object code, Java byte code or interpretable JavaScript; or they can be structured as data for a presentation engine, such as html. The content associated with an enhancement can also contain binary data items for display to the user, for example, GIFs, JPEGs, and WAVs. Some or all of an enhancement's content may already be resident on the client when the command to start the enhancement comes in on the Announcement stream; some or all of an enhancement's content may be pulled in from the Content stream. For example, all of the data necessary to display an enhancement associated with a special one-time only broadcast, such as the Academy Awards, are likely to be pulled in off the Content stream. However, core modules associated with a standard enhanced advertising system that are used by many advertisements are likely to be locally stored in the updateable, re-writable compact flash memory in the set top box. Alternatively, core modules could be stored locally in other set top box memory.

[0045] Launching an enhancement consists of loading the initial content needed by the enhancement onto the client if it is not already resident there, optionally displaying a prompt to the user and, if the user chooses to accept the prompt, or if the user is not given a prompt, running the initial interpretable (runable) elements or sending them to the presentation engine, as appropriate.

[0046] An enhancement may be of long duration, such as the display of a flow of stock information that lasts years, or short in duration, such as adding interaction to a 30 second television commercial.

[0047] To listen to the Announcement stream, the client must have some way of identifying this stream. In the MPEG/DVB transport example, the Announcement stream is carried at a well-known location, for example a specific PID, or advertised as a component with a well-known stream ID on the PMT. Other options in other systems include, for example, a well-known broadcast IP address, a well known frequency, or an indirection mechanism similar to the PMT in which a known physical resource, such as PID, frequency, or IP address, contains a table which maps available streams or other resources to their physical locations.

[0048] The enhancement itself may “listen to” or otherwise monitor a Trigger stream. The problem of identifying the Trigger stream is similar to the problem of identifying the Announcement stream, and can be solved by similar means. In addition, the physical resource containing the Trigger stream may be specified in the Announcement stream. In this case the enhancement may refer back to the Announcement that launched it, and find the physical location there.

[0049] Both the enhancement and the program on the client responsible for listening to Announcements and launching enhancements can use the Content stream. Because there may be multiple resources on a single Content stream, a mechanism is needed to map individual resource references to physical locations within the Content stream. Such a mechanism is found in a Table of Contents (TOC) for the Content stream. The TOC for the Content stream is normally contained in the Announcements stream, to which the client is automatically listening. After receiving the TOC, the client uses the information in it to establish a mapping between the names of the individual items on the Content stream and the subsections of the stream that contain those items.

[0050] For example, in the case Where the streams are contained within MPEG transport streams, the TOC can establish the relationship between the reference (URL, URI, or other) that identifies the particular content item (“http://www.quizshow.com/quizshow.html”) and the table ID and/or extended table ID of that item within the Content stream (table ID 0×80, extended table ID 0×4ef8). If there is more than one Content stream available, there is additional information pertaining to which Content stream the content item is on, for instance a known PID (PID 0×2e, table ID 0×80,extended table ID 0×4ef8), or other identifier for the Content stream, i.e. 0×93-01-0×80-0×4ef8, where 0×93-01 identifies the stream within the service uniquely by stream type and component tag in the PMT descriptors, or other mechanism specific to the particular transport used.

[0051] As additional examples, alternate specific embodiments of the invention are given in FIGS. 2, 3, and 4.

[0052] In FIG. 2, the broadcast data server 12 if FIG. 1 is replaced by a data source and storage medium 12 a, and data on the storage medium is then sent directly to the transmission mechanism 16.

[0053]FIG. 3 shows an embodiment of the invention in a VOD environment. In this case, the transmission mechanism consists of a VOD recorder 131, VOD storage device 133, and a VOD player 132. The broadcast data server 12 and auxiliary video/audio server 19 feed into the VOD recorder 131, where the combined data are formatted and sent to into storage in the VOD storage device 133 for playback at a later time. The VOD player 132 is responsible for sending this data to the client in response to a client request. Note that for simplicity the Announcement, Trigger, Content, and Auxiliary data streams are represented by a single line in FIG. 3, however they are still separate streams and no significant departure from their use in FIG. 1 is implied or indicated.

[0054]FIG. 4 shows an embodiment of the invention in a Digital Video Recorder (DVR) environment. In this environment, the streams from the transmission medium are stored for an indeterminate period of time in local storage 141 on the client, instead of being sent immediately to the enhancement and enhancement service. Playback from local storage begins on the user's command. Again, for simplicity, Announcement, Trigger, Content, and Auxiliary data streams are represented by a single line, and again, no significant departure in these streams from the diagram in FIG. 1 is implied or indicated.

[0055] Distribution and Synchronization

[0056] Some types of information, for instance state information carried on a Trigger Stream, must be delivered to the enhancement on the client at a guaranteed time. Such a mechanism, for instance, allows tight synchronization of events in a television broadcast with events within the enhancement.

[0057] In the presently preferred embodiment of the invention, a mechanism is provided whereby timing information is transmitted from the server to the client, and information on the client can be guaranteed to be delivered to the enhancement at a particular time, according to this timing information. This timing information is specific to a particular enhancement, allowing multiple enhancements to run simultaneously and independently.

[0058] This mechanism comprises a means to set the state on the server, a protocol for transmitting that state to the client, and a method for the client to ensure that events are delivered at the appropriate times.

[0059] On the server, the main data streams are split into data substreams, one for each enhancement, which can be addressed independently in commands to the server. These data substreams can be created and destroyed programmatically, that is, in commands to the server, and may share physical resources within their main data stream. For instance, if the server has an XML command interface, a command to create a data substream can have the following syntax: <CAROUSEL NAME=“kqed”> <CREATEVIRTUAL NAME=“trigger512”/> <DESTROYVIRTUAL NAME=“trigger511”/> <CAROUSEL>

[0060] where the <CAROUSEL> tag identifies the main data stream, and the <CREATEVIRTUAL> and <DESTROYVIRTUAL> tags identify the data substreams to be created and destroyed within that main data stream.

[0061] Timing state is set for a data substream by creating a virtual time base for the substream. This time base is initialized by specifying an absolute time and corresponding time base time, for instance, <CAROUSEL NAME=“kqed” VIRTUAL=“trigger512”> <SYNCH RELATIVE=“0” UTC=“2001-12-20T02:30:00” CONTINUOUS=“false”/> </CAROUSEL>

[0062] which sets/initializes the time base of substream “trigger512” to 0 at UTC time Dec. 12, 2001, 2:30:00. There is no requirement that time on the virtual time base move forward in real time, that is, one second per second, although it is anticipated that in many cases it will.

[0063] Note that absolute time may be specified by any number of different mechanisms: UTC time, GMT time, Pacific Daylight Time, number of seconds since a defined epoch, among others. The only requirement is that the server understands the time encoding used, and is able to schedule the specified event for the appropriate moment in time. In the case where previously stored data are read back from a file, a mechanism such as the SMPTE time code, which specifies time in streaming video files, can be used to specify time.

[0064] After a time base has been initialized, it can be manipulated through commands to the server. Time can be moved around, for instance sped forward or backward, or jumped to a specific new time in the time base. In the XML example, for instance, use of the CONTINUOUS=“false” attribute-value in the SYNCH tag means that time on the time base should jump to the new value at the specified UTC time. Similarly, CONTINUOUS=“true” means that that time should be quickly moved forward or back to the new time base time at the specified UTC time. Note that a discontinuous jump in time means that events between the current time and the new time are not delivered to the enhancement, whereas a continuous jump means that all events between the current time and the new time should be delivered immediately once the jump occurs.

[0065] The synthetic time base may also be paused at any time through a command to the server. Such a command, in XML format, could appear as <CAROUSEL NAME=“kqed” VIRTUAL=“trigger512”> <PAUSE UTC=“2001-12-20T02:30:00”> </CAROUSEL>

[0066] Pause times may be specified in absolute time (UTC, GMT, or other), in the synthetic time base of the substream, or through any other mechanism that can be used to identify a time uniquely to the server.

[0067] The time base associated with a substream may also be destroyed without destroying the substream itself. This may be useful when the substream is being used to carry items that are not time dependent, or when the system wishes to put the, time base into a temporary suspended state. In the XML example, such a command to the server could be: <CAROUSEL NAME=“kqed” VIRTUAL=“trigger512”> <UNSYCH UTC=“2001-12-20T04:30:00”> </CAROUSEL>

[0068] As with pause times, unsync times may be specified in absolute time, the synthetic time base of the server, or any other mechanism that uniquely identifies time to the server.

[0069] It is to be noted that these pause, resume, create, destroy, synch, and unsynch concepts apply to the synthetic time base attached to a data substream. The state of the enhancement itself need not be changed.

[0070] The protocol to transmit this timing information to the client consists of time pulses that are associated with the data substream. These time pulses are delivered regularly to the client, and consist of the current time on the substream's time base. Information about coming events, such as upcoming time transitions, may also be transmitted to the client. Such information should be transmitted multiple times to the client because losses within the transmission mechanism can prevent receipt of any particular piece of data.

[0071] For instance, if these time pulses where transmitted as strings, a typical time pulse looks like:

[0072] trigger512/T″25000

[0073] where trigger512 indicates the data substream and where T″ the standard time pulse of a running time stream with a time of 25000 ms.

[0074] Similarly, time pulses associated with a paused stream might have a special code, such as:

[0075] trigger512/Z″25000

[0076] which indicates that the time base associated with data substream trigger512 has been paused at time 25000 ms. Communicating the distinction between paused and unpaused time bases to the client is especially important when the client may start receiving data on the substream at any time: the internal state of the client may be set very differently if it first receives a paused time pulse rather than a standard time pulse.

[0077] Time pulses associated with upcoming time base changes have two associated times, i.e. a time at which the change takes place, and a new time to set the time base at that time. For instance,

[0078] trigger512/D″25000-35000

[0079] means that the time base should jump forward 10 seconds (35000 ms−25000 ms) at time 25000 ms on trigger512's time base.

[0080] It is important that the protocol for communicating between the client and the server does not necessarily include an absolute time. This allows the timing information to be entirely self-contained, which allows it to recorded along with the enhancement, and played back at a later time without any loss of coherence. It is expected that this mechanism is of use not just in synchronizing enhancements with other data sources, but also in “digital video recorder” (DVR) and video on demand (VOD) applications, where the time line associated with the media can be manipulated by the end user. In cases where the data streams are replayed at a later date, the data source could directly operate on files, or could be injecting data into a real-time recording system.

[0081]FIG. 5 shows the multiplexing of data and timing information for two data substreams, subStream A and subStream B, on a single data stream 150. Note that the main data stream may contain data 151 that are not associated with a substream, as well as data 152, 153 that are specific to each contained substream.

[0082] Individual items that are to be delivered to the enhancement at specified times according to the synthetic time base can be sent multiple times from the server, and are sent before they are scheduled to be delivered. This mechanism ensures that the data are available to the client before they are needed by the enhancement, and in the case of a lossy transmission medium, guarantees as much as possible that the data are actually received by the client.

[0083] On the client side, the client uses these pulses to recreate the internal time base associated with the data substream. Data are not guaranteed to be transmitted to the client without loss, and transmission delays within the client itself or the in broadcast medium are likely to cause jitter in the reception of these time pulses. The client applies an appropriate smoothing algorithm, for instance a calculated average over eight time pulses, to recreate the original time base from the incomplete data that it receives.

[0084] The actual data that are to be transmitted according to the internal time base are sent along with an identifier of the data substream to which they belong, and the time in that substream's time base in which they are to be presented to the enhancement. Again, to ensure correct reception, these data are transmitted early to the client, and may be transmitted multiple times.

[0085] For instance, the server can be told to place a simple name value pair in the data substream with the following XML command: <CAROUSEL NAME=“kqed” VIRTUAL=“trigger512”> <ITEM> <SCHEDULE START=“25000” DELIVER=“35000” INTERVAL=“1000”> <DATA NAME=“question” VALUE=“What is the price of tea in China?”> <DATA NAME=“answer1” VALUE=“1500 yuan/kg”> <DATA NAME=“answer2” VALUE=“2500 yuan/kg”> <DATA NAME=“answer3” VALUE=“More than I can afford”> </ITEM> </CAROUSEL>

[0086] In this example, data consisting of four name value pairs are to be put into the data substream trigger512 in main data stream kqed. The data are placed in the stream at the data substream's internal time of 25000 ms, for delivery to the enhancement 10 seconds later, at internal time of 35000 ms. These data are to be sent every second (1000 ms).

[0087] Although this example uses data only in the form of string name value pairs, this is not intended as a restriction. Data delivered in this fashion can be arbitrary: they need only be associated with a particular synthetic time and a data substream carrying the synthetic time base.

[0088] On the client side, the enhancement or enhancement service may choose to listen to any of the data substreams that it wishes, and need not receive information for the others. In an MPEG system, this can be accomplished by adding additional descriptors to the substream that are used to differentiate it from other substreams, or by adding identifiers to the individual items on the substream that reflect the substream to which those items are associated. Other mechanisms are possible with other broadcast media.

[0089] In reference to the enhancement system as presented above, this mechanism can be used to guarantee the delivery of any items on the three main data streams at a particular time in a substream's time base. For instance, a data substream can be set up on the Trigger stream for an enhancement using that stream. The enhancement then receives time sensitive information at a particular time within its own time base. Furthermore, multiple enhancements can share the same Trigger stream, but each enhancement is associated with a different substream within that stream. In this case, each enhancement receives trigger data at a time specified in the time base of its own substream, which may or may not correspond to the time bases of substreams of the other enhancements. Time in two enhancements, as defined by the time base of their associated trigger streams, need not even flow at the same pace in the two enhancements, even if they are running simultaneously.

[0090] Because of the programmatic and dynamic nature of the substreams, enhancements from multiple independent and mutually unaware sources can coexist in a single system. For instance, an enhancement on the ESPN can be set up and scheduled without any need for knowledge of an enhancement associated with an ad break. They both reference their own internal time bases, create and destroy their own internal substreams, and receive only their own data, even though they are running at the same time.

[0091] Announcements And Preloading

[0092] The announcement stream is used to transmit information concerning the availability of enhancements on the system, as well as information about how to initialize the enhancement and what resources it needs to run. Information transmitted by the announcements may consist of times, relative to the receipt of the announcement, that the enhancement should begin and end; times, also relative to the receipt of the announcement, during which the enhancement should be paused and its interface removed from the users perception (this feature is useful for inserting advertisements into the enhancements, for example); a URL or other reference to the main program or resource bundle associated with the enhancement; a URL or other reference to an item to be used to prompt the user to start the enhancement; and a URL or other reference to content intended to be loaded before the enhancement begins.

[0093] A list of announcement items is contained in Table 1 below. It is not meant to be an exhaustive list of all possible items in an announcement, nor are all of the items considered to be mandatory. TABLE 1 Announcement Items Item Name Purpose startTime time in seconds after receipt of the announcement at which prompting for the enhancement should begin. If there is no prompt, time at which the enhancement should begin pauseTime time in seconds after the receipt of the announcement at which the enhancement should be paused, and all UI made invisible to the user resumeTime time in seconds after the receipt of the announcement at which the enhancement should be resumed from the pause state. UI should be made visible again at this time killTime time in seconds after the receipt of the announcement at which the enhancement should be terminated id identifier for the enhancement orgId identifier for the organization profile profile for the run time environment of the enhancement - HTML3.2, HTML4.0, Java, etc url reference to the initial enhancement content to be loaded and run prompt reference to image used to prompt user to enter enhancement, may also specify system specific default prompt promptSize size of the prompt (width, height) promptLoc location of the prompt (x, y) promptDuration length of time to display the prompt promptAcceptKey Key on the client used to accept the prompt memory amount of client side memory required by the announcement triggerUrl reference to stream used for triggers associated with the enhancement. Used by the enhancement, in conjunction with a client side API for listening to streams, to listen to the trigger stream preloadUrl comma delimited list of references to content which must be loaded on the client before the enhancement is run and before any prompting or other indication of the availability of the enhancement is made to the user.

[0094] On the client, the software listening to the announcements may launch an announced enhancement, per the information contained in the announcement. The listening software does not have the option of launching an enhancement that is not contained in the announcement, and does not have the option of launching the enhancement in a way inconsistent with the announcement. It may, however, decide not to launch the enhancement at all, due to insufficient resources on the client, an inability to find the enhancement data, policies set by other software running on the client, user preferences, or any other reason.

[0095] Interactions with Other Client Sub-Systems

[0096] The invention also comprises a technique for allowing enhancements to interact with other modules in the client in a secure manner. Enhancements are typically programs or program fragments, either in interpreted form or in abstract byte code form, and can be considered as a program in a general purpose computing environment. In many systems, there is a privilege level that controls what actions a program may perform. For example, an enhancement may be allowed to open a new window, or may not. The program makes function calls to various system resources, which can be implemented in native software, interpreted code, or abstract byte code. The privileges of the program are one of the factors the system software uses to determine whether the program is allowed access to those functions. The privilege level at which a program run is associated with the program's execution context. A problem arises when a lower privilege program needs to use functions for which it is not privileged. Typically, it is desired to give the lower privileged program access to a very restricted subset of the privileged functionality, which is why simply granting a higher level of privilege to the lower privileged program is undesirable.

[0097] As an example of this problem in common usage today, many networked applications, such as Java and JavaScript, make use of an Access Control List (ACL), which specifies URLs, or URL domains, of trusted content. This list is typically transmitted to the client by network operators, and decisions about whether to allow content to access privileged functionality are made by comparing the URL of the content with the privileged URLs in the ACL list.

[0098] The difficulties of this approach are two fold:

[0099] 1. It is not flexible enough. Typical ACL systems provide only a few levels of pre-assigned privileges, and they do not correspond well to the needs of enhancement systems.

[0100] 2. Maintaining the ACL list is problematic for the network operators. Because the ACL list is a set of URLs with corresponding privileges, each time new privileged content is made available to the system, the ACL list may need to change. This is especially troublesome in distributed system, such as enhanced TV, where the people responsible for distributing the content, i.e. the broadcasters, are not the people responsible for maintaining the ACL list, i.e. the cable, terrestrial, or satellite TV operators.

[0101]FIG. 6 is a block diagram that illustrates this problem of accessing a privileged function from an unprivileged program. In this situation, an unprivileged program 20 has a function foo 23 that calls 24 a function bar 24 which is a privileged function 26 that resides in a privileged program 22. Here, the context of the unprivileged program cannot access the privileged function.

[0102] The invention solves this problem by allowing a privileged program to publish functions which the implementer wishes to make accessible to less privileged programs. The mechanism for the publication is string based, that is, the privileged program specifies by name the function the implementer wishes to publish, the name under which the published function is to be known, and one or more strings corresponding to the privilege levels that a subscribing program must have to access the function. When an unprivileged program calls a privileged function published in this way, the context of the unprivileged program is temporarily swapped with the context of the privileged program.

[0103]FIG. 7 is a block diagram that illustrates the technique for accessing a privileged function from an unprivileged document according to the invention. As shown on FIG. 7, the program swaps contexts 27, 29, so that the thread of control 28 temporarily runs in the privileged context.

[0104] Permissions to access these published functions are granted by highly privileged programs. The highly privileged program associates a privilege with a function. Typically, this is a comma-delimited string of custom privileges with the context of a program with lower privileges, although the invention also allows standard privileges to be so granted. If any of the privileges granted to the lower privilege program matches any of the privileges that a published function was published with, the lower privilege program may access the published function.

[0105] By allowing both standard privileges and custom privileges to be granted, the invention not only creates arbitrary flexibility in privilege levels, but can also subsume the standard privilege mechanisms. In practice, for instance, this mechanism can be used to eliminate the need for the ACL list currently used by network operators.

[0106] In use, this feature can take the form:

[0107] navigator.exports.exportFunction(“grpName”, “aliasName”, function, “privString”),

[0108] where:

[0109] “grpName” is the name of an arbitrary grouping of similar services under which the function is exported,

[0110] “aliasName” is the name by which the exported function is known, and

[0111] “privString” is a comma separated list of privileges needed to access the function (any privilege in the list grants access).

[0112] For instance, “navigator.exports.exportFunction(“etv”, “myPriv”, privFunc1, “etv”) exports the function privFunc1 as:

[0113] navigator.exports.etv.myPriv( )

[0114] and only contexts with the custom “etv” privilege are allowed to use it.

[0115] In the preferred embodiment of the invention, the feature of exporting functions is a highly privileged operation. Thus, one can also unexport a previously exported function.

[0116] For the function:

[0117] navigator.exports.unexportFunction(srvName, funcName)

[0118] When a function has been unexported, or if a context lacks permissions to see the function, the function object appears null.

[0119] A symmetric problem to the above occurs when a privileged program wishes to use functions defined by unprivileged programs. Typically this occurs when the standard API defined for allowing the two programs to interact requires a callback to be provided by the less privileged program to the more privileged program.

[0120] In this case, the more privileged program is expected to call the callback of the less privileged function. Because the callback is part of the less privileged program, it cannot be trusted in the same way as the more privileged program. However, if the callback is called directly from the more privileged program, it is run in the context of the more privileged program, and has that program's trust level and security access.

[0121] The solution to this problem is essentially similar to the solution for the symmetric case-. A special call is made which allows the callback to be run in the less privileged context. FIG. 8 is a block diagram that illustrates a technique for signaling between privileged and unprivileged contexts without granting security access according to the invention. In this case, however, there is no need for custom defined privileges because the higher priority program is assumed to be privileged enough to invoke lower privilege functionality.

[0122] A sample implementation in JavaScript is as follows:

[0123] navigator.exports.invokeCallback(window, this, func)

[0124] Where:

[0125] window defines which context to use for the callback

[0126] this is the “this” when the function is called

[0127] func is the function to be invoked.

[0128] The function invokeCallback( ) returns an object with two properties:

[0129] result—the return value of the function called

[0130] failed—whether or not that function threw a JS Error.

[0131] In JavaScript, capturing the return values in this way allows the caller's thread not to be aborted by an error made by the callee.

[0132] This security and privilege-granting mechanism is applicable to other programming languages as well, including Java and other-bytecode-oriented systems.

[0133] Typically, Enhanced TV is thought of in terms of current television distribution systems, such as analog broadcast or digital cable and satellite. It is equally applicable to other distribution mediums and display devices over which video and audio can be delivered, including IP-based systems (such as video over DSL) and video over wireless networks (such as distribution over a 3G network to a mobile phone.)

[0134] Although the invention is described herein with reference to the preferred embodiment, one skilled in the art will readily appreciate that other applications may be substituted for those set forth herein without departing from the spirit and scope of the present invention. Accordingly, the invention should only be limited by the claims included below. 

1. An apparatus for transmitting data in a data stream, comprising: a plurality of physical data streams; at least one of said physical data streams comprising a plurality of virtual data streams that are individually addressable and individually selectable by a recipient application; a virtual time line for each said virtual data stream.
 2. The apparatus of claim 1, wherein said data stream is an MPEG stream.
 3. The apparatus of claim 1, said data stream is transmitted by IP.
 4. The apparatus of claim 1, wherein said data stream is transmitted by VBI.
 5. The apparatus of claim 1, wherein said data stream contains enhanced TV data.
 6. A transmitted data element for enhanced content, comprising: a content reference preload flag which, if present, provides that one or more content items must be loaded; and means for determining if said loading has succeeded, and, if so, taking an action.
 7. The data element of claim 6, wherein said action comprises any of: notifying the user; displaying images from the content; playing sounds from the content; running some or part of the content; notifying other software elements within the system; and notifying other computers within the distributed environment; wherein said loading must succeed before any use of the content or user notification of the content; and.
 8. The data element of claim 6, wherein said content items comprise a mechanism by which other content is retrieved or accessed.
 9. The data element of claim 6, wherein said data element is received from any of: a local storage means, a broadcast means, and a two-way networking means.
 10. An apparatus for granting privileges to programs in an enhanced TV system, comprising a module for allowing a privileged program to set a privilege level of another program; wherein said privilege level is any of one or more standard levels, or it can be custom defined.
 11. The apparatus of claim 10, wherein execution contexts of said program comprise graphical screen elements, which may comprise one or more windows.
 12. An apparatus for exporting functions in an enhanced TV system, comprising: a module for allowing a privileged program to offer to run restricted functions on behalf of an unprivileged program; wherein said exported function define a custom privilege that said calling window must have to be able to call said restricted functions.
 13. An apparatus for invoking callbacks, comprising: a module for allowing a privileged program to call into an unprivileged program without granting unprivileged content additional security privilege.
 14. An enhanced TV system, comprising: at least one client; a Content stream which contains resources that make up enhancements, wherein there are multiple resources on a single Content stream, and wherein said enhancements are optionally associated with a particular synthetic time and a data substream carrying a synthetic time base; a Trigger stream which contains information, at least some of which is time sensitive, for at least one enhancement, and which also carries time synchronization protocol data; a server comprising a data timing and synchronization mechanism for scheduling data to be delivered to said client via said Content stream and for simultaneously processing data for said at least one enhancement; wherein said server sends a plurality of distinct streams for each enhancement; and a mechanism for mapping individual resource references to physical locations within said Content stream; wherein said at least one enhancement may be associated with a same TV service; and wherein more than one enhancement may be active at a same time.
 15. The apparatus of claim 14, wherein said streams further comprise: an Announcement stream which serves as a mechanism of notifying said at least one client of which enhancements are available.
 16. The apparatus of claim 15, said mapping mechanism further comprising: a Table of Contents (TOC) for said Content stream; wherein said TOC for said Content stream is contained in an Announcement stream to which a client is automatically listening; and a mechanism in said client for using said TOC to establish a mapping between names of individual items on a Content stream and subsections of said Content stream that contain those items.
 17. The apparatus of claim 16, said mapping mechanism further comprising: a mechanism for establishing a relationship between a URL that identifies a particular content item and a table ID and/or extended table ID of that item within said Content stream.
 18. The apparatus of claim 14, said data timing and synchronization mechanism further comprising: a mechanism for delivering state information carried on a Trigger Stream to an enhancement on a client at a guaranteed time.
 19. The apparatus of claim 18, said mechanism for delivering state information further comprising: a mechanism for transmitting timing information from said server to a client; and for guaranteeing that information on said client is delivered to an enhancement at a particular time, according to said timing information; wherein said timing information is specific to a particular enhancement; and wherein said mechanism for delivering state information allows multiple enhancements to run simultaneously and independently.
 20. The apparatus of claim 19, wherein said mechanism for transmitting timing information further comprises: a mechanism for setting state on said server; a protocol for transmitting said state to a client; and a mechanism for ensuring for the client that events are delivered at appropriate times.
 21. The apparatus of claim 14, wherein on said server, main data streams are split into data substreams, one for each enhancement, which can be addressed independently in commands to said server; and wherein said data substreams are created and destroyed programmatically, in commands to said server, and may share physical resources within a main data stream.
 22. The apparatus of claim 21, wherein timing state is set for a data substream by creating a virtual time base for said substream; wherein said time base is optionally initialized by specifying an absolute time, which may comprise any of Universal Coordinated Time (UTC), Greenwich Mean Time (GMT), and Pacific Time; and corresponding time base time.
 23. The apparatus of claim 22, further comprising: a mechanism for manipulating said time based through command to said server, after said time base is initialized.
 24. The apparatus of claim 22, further comprising: a mechanism for manipulating time for any of speeding forward or backward in said time base, jumping to a specific new time in said time base, and pausing at any time in said time base through a command to said server.
 25. The apparatus of claim 24, wherein pause times may be specified in any of UTC time, in a synthetic time base of a substream, and through any mechanism that can be used to identify a time uniquely to said server.
 26. The apparatus of claim 22, wherein a time base associated with a substream may be destroyed without destroying the substream itself.
 27. The apparatus of claim 22, further comprising: a protocol for transmitting timing information to a client, said protocol comprising time pulses that are associated with a data substream; wherein said time pulses are delivered regularly to said client, and comprise a current time on a substream's time base; and wherein information about coming events is optionally transmitted to said client due to losses within a transmission medium, where client may not receive every time pulse sent.
 28. The apparatus of claim 22, wherein time pulses associated with upcoming time base changes have any of two associated times, which comprise a time at which a change takes place, and a new time to set a time base at that time.
 29. The apparatus of claim 27, wherein said protocol for communicating between said client and said server does not necessarily include an absolute or UTC time; wherein timing information is entirely self contained, and can be recorded along with an enhancement, and played back at a later time without any loss of coherence.
 30. The apparatus of claim 27, wherein said client uses said time pulses to recreate an internal time base associated with a data substream.
 31. The apparatus of claim 30, wherein said client further comprises: a smoothing algorithm for recreating an original time base from incomplete data that it receives.
 32. The apparatus of claim 27, wherein actual data that are to be transmitted according to an internal time base are sent along with an identifier of a data substream to which they belong, and a time in said substream's time base in which they are to be presented to an enhancement.
 33. The apparatus of claim 14, said Content stream comprising: a plurality of substreams, each of which may further comprise a descriptor for differentiating said substream from other substreams.
 34. The apparatus of claim 14, said Content stream comprising: a plurality of substreams, wherein identifiers are added to individual items on said substream that reflect a substream to which those items are associated.
 35. An apparatus for providing client side security enhancements in an enhanced TV system, comprising: means for any of granting privileges to objects to allow a privileged application to set a privilege level of an object related to, belonging to, or created by another application; exporting functions for accessing a privileged function from an unprivileged application; and invoking functions for signaling between privileged and unprivileged applications without granting security access.
 36. A method for allowing one or more enhancements to interact with other modules in a client in a secure manner, comprising the steps of: establishing a privilege level that controls what actions a program may take; allowing a privileged program to publish functions which an implementer wishes to make accessible to less privileged programs; and allowing a less privileged program to call and run functions for which it is not privileged by means of said published functions.
 37. The method of claim 36, wherein said one or more enhancements comprise: a program, either in interpreted form or in abstract byte code form, and are considered as a program in a general purpose computing environment.
 38. The method of claim 36, wherein said privilege level determines whether or not an enhancement is allowed to open a new window.
 39. The method of claim 36, wherein said privileged program specifies by name a function said implementer wishes to publish, a name under which said published function is to be known, and one or more strings corresponding to privilege levels that a subscribing program must have to access said function.
 40. The method of claim 36, wherein when an unprivileged program calls a privileged published function, a context of said unprivileged program is temporarily swapped with a context of said privileged program.
 41. The method of claim 36, wherein permissions to access said published functions are granted by highly privileged programs which associate a privilege with a context of a program with lower privileges; and wherein if any privileges granted to said lower privilege program matches any privileges with which a published function was published, then said lower privilege program may access said published function.
 42. A method for allowing a privileged program to call and run functions defined by unprivileged programs, comprising the steps of: making a special call which allows a callback to be performed in a less privileged context; and signaling between privileged and unprivileged contexts without granting security access.
 43. A method for transmitting information concerning availability of one or more enhancements on a system, as well as information about how to initialize said enhancements and what resources are needed for running an enhancement, comprising the step of: transmitting information by one or more announcements which comprise any of: times, relative to receipt of an announcement, that an enhancement should begin and end; times, relative to receipt of an announcement, during which an enhancement should be paused and its interface removed from a user's perception; a URL or other reference to a main program or resource bundle associated with an enhancement; a URL or other reference to an item to be used to prompt a user to start an enhancement; and a URL or other reference to content intended to be loaded before the enhancement begins.
 44. The method of claim 43, further comprising the steps of: at a client, listening to said announcements to launch an announced enhancement, per information contained in said announcement; not launching an enhancement that is not contained in an announcement; not launching an enhancement in a way inconsistent with said announcement; optionally deciding not to launch an enhancement at all, which may be due to any of insufficient resources on said client, an inability to find enhancement data, policies set by other software running on said client, user preferences.
 45. The method of claim 43, wherein said announcement items comprise any of: startTime comprising time in seconds after receipt of an announcement at which prompting for an enhancement should begin; wherein if there is no prompt, time at which said enhancement should begin; pauseTime comprising time in seconds after receipt of an announcement at which an enhancement should be paused, and said user interface (UI) is made invisible to a user; resumeTime comprising time in seconds after receipt of an announcement at which an enhancement should be resumed from a pause state; wherein said UI is made visible again at this time; killTime comprising time in seconds after receipt of an announcement at which an enhancement should be terminated; id comprising an identifier for an enhancement; orgId comprising an identifier for an organization; profile comprising profile for a run time environment of an enhancement; url comprising a reference to an initial enhancement content to be loaded and run; prompt comprising a reference to an image used to prompt user to enter an enhancement, which may also specify a system specific default prompt; promptSize comprising size of a prompt (width,height); promptLoc comprising location of a prompt (x,y); promptDuration comprising length of time to display a prompt; promptAcceptKey comprising a key on a client used to accept a prompt; memory comprising an amount of client side memory required by an announcement; triggerUrl comprising a reference to a stream used for triggers associated with an enhancement, and set by said enhancement, in conjunction with a client side API for listening to streams, to listen to a trigger stream; and preloadUrl comprising a comma delimited list of references to content which must be loaded on a client before an enhancement is run and before any prompting or other indication of availability of an enhancement is made to a user. 